﻿using UnityEngine;
using System.Collections;
using System.Threading;

public class AniEffectAniDirect : AniEffectAniSelf {

	public static bool Horizontal = false;

	protected override void playAniBase(AniBase aniBase, OReportDetail detail, CallBack finished) {
		if(self != null) {
			if(Horizontal) {
				if(self.transform.position.x > 0) {
					gameObject.transform.localEulerAngles = new Vector3(0, 0, 180);
				}

			} else {
				if(self.transform.position.y > 0) {
					gameObject.transform.localEulerAngles = new Vector3(0, 0, 180);
				}
			}
		}

		aniBase.playCallBack(finished);
	}
}
